package com.yanqu.road.entity.activity;

import com.yanqu.road.entity.DataObject;
import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.entity.DataStatus;

/**
 * @Description 跨服活动数据 (公共存放跨服活动数据的表)
 * @Author cwq
 * @Data 2021/4/28 10:42
 */
@FieldTypeAnnotation(tableName = "t_c_activity_detail")
public class CrossActivityDetail extends DataObject {

    @FieldTypeAnnotation(select = true, update = true)
    private int activityId;
    @FieldTypeAnnotation(desc = "活动组id",update = true)
    private int groupId;

    @FieldTypeAnnotation(desc = "数据1")
    private long param1;

    public void setActivityId(int activityId) {
        if (this.activityId != activityId) {
            this.activityId = activityId;
            setOp(DataStatus.Update);
        }

    }
    public void setParam1(long param1) {
        if (this.param1 != param1) {
            this.param1 = param1;
            setOp(DataStatus.Update);
        }

    }

    public int getActivityId() {
        return activityId;
    }

    public long getParam1() {
        return param1;
    }

    public int getGroupId() {
        return groupId;
    }

    public void setGroupId(int groupId) {
        if (this.groupId != groupId) {
            this.groupId = groupId;
            setOp(DataStatus.Update);
        }
    }
}
